<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="${root!}/static/css/layout.css" rel="stylesheet" type="text/css" />
<link href="${root!}/static/css/skin.css" rel="stylesheet" type="text/css" />
<link href="${root!}/static/css/dialog.css" rel="stylesheet" type="text/css" />
<link href="${root!}/static/css/tab.css" rel="stylesheet" type="text/css" />

<script src="${root!}/static/Js/jquery-1.4.2.js" type="text/javascript"></script>

<script src="${root!}/static/js/layout.js" type="text/javascript"></script>

<script src="${root!}/static/js/dialog.js" type="text/javascript"></script>

<script src="${root!}/static/js/tab.js" type="text/javascript"></script>

<script src="${root!}/static/js/row.js" type="text/javascript"></script>

<script src="${root!}/static/js/form.js" type="text/javascript"></script>

<script>
	var RootPath = "${root!}";
	var FormCodeUrl = RootPath + "/form/form";
	var FormSubmitMethod = "save";
	var FormSubmitAction = "${action!}";
	
	//动态行参数
	var FormRowClass = "DynamicRow";
	var rowData1="${rowData1!}";
	var rowData2="${rowData2!}";
	var rowData3="${rowData3!}";
	
	$(function() {
        HideTab("tab2");
        HideTab("tab3");
        HideTab("tab4");
        HideTab("tab5");
        HideTab("tab6");
        HideTab("tab7");
        HideTab("tab8");

        var pageCode = $("#hidPageClassifyCode").val();
        if (pageCode.length > 0) {
            ProcessTab(pageCode);
        }
        
        //显示动态行
        ShowRow();
        
        
        $("#txtSQLShowField").blur(function(){
        	setupSQL();
        });
        $("#txtSQLFromTable").blur(function(){
        	setupSQL();
        });
        $("#txtSQLWhereField").blur(function(){
        	setupSQL();
        });
        $("#txtSQLOrderField").blur(function(){
        	setupSQL();
        });
        $("#txtSQLGroupField").blur(function(){
        	setupSQL();
        });
        setupSQL();
        
        
        if(FormSubmitAction=="update")
        {
        	//保存后不可以修改页面类型
        	$("#fontChangePage").css("display","none");	
        }
        
	});
	
	function SubmitClick() {
		if (!CheckForm()) {
			return false;
		} else {
			PrintXml();
			SubmitForm();
		}
	}
	
	function SelectPageClassify()
	{
        var currentId = document.getElementById("hidPageClassifyId").value;
        
        var dataMapper = "classify.classify.selectTree";
        var searchObject={};
        searchObject.typeCode="ymlx";
        var searchMapper = JSON.stringify(searchObject);
        searchMapper = searchMapper.replace(/\%/g, "%25");
        searchMapper = searchMapper.replace(/\+/g, "%2B");
        searchMapper = searchMapper.replace(/\&/g, "%26");
        searchMapper = encodeURIComponent(searchMapper);
        CommonDialog("/components/tree/treeDialog?selectType=1&expandType=1&onlyLeafSelect=true&currentId="+currentId+"&dataMapper="+dataMapper+"&searchMapper="+searchMapper, "选择页面类型", 600, 400, function(v) {

            var returnObj = eval("(" + unescape(v) + ")");
            if (returnObj) {

            	$("#hidPageClassifyId").val(returnObj.NodeId);
            	$("#hidPageClassifyCode").val(returnObj.NodeCode);
            	$("#txtPageClassifyName").val(returnObj.NodeText);
                
                ProcessTab(returnObj.NodeCode);
            }

        });
	}
	
	function SelectSaveTable()
	{
		var currentId = document.getElementById("hidSaveTableId").value;
		
		var dataMapper = "frame.table.selectTree";
        var searchObject={};
        //searchObject.typeCode="ymlx";
        var searchMapper = JSON.stringify(searchObject);
        searchMapper = searchMapper.replace(/\%/g, "%25");
        searchMapper = searchMapper.replace(/\+/g, "%2B");
        searchMapper = searchMapper.replace(/\&/g, "%26");
        searchMapper = encodeURIComponent(searchMapper);
        CommonDialog("/components/tree/treeDialog?selectType=2&expandType=1&onlyLeafSelect=true&currentId="+currentId+"&dataMapper="+dataMapper+"&searchMapper="+searchMapper, "表选择", 600, 400, function(v) {

        	var ids="";
        	var texts="";
        	if(v.length>0)
        	{
        		 var selectArray = v.split(",");
        		 for (var i = 0; i < selectArray.length; i++) {
        			 var selectItem = selectArray[i];
        			 
        			 var returnObj = eval("(" + unescape(selectItem) + ")");
        			 if (returnObj) {
        				 ids += ",";
                         ids += returnObj.NodeId;
                         texts += ",";
                         texts += returnObj.NodeText;
        			 }
        		 }
        		 if (ids.length > 0) {
                     ids = ids.substring(1);
                     texts = texts.substring(1);
                 }
        	}
        	$("#hidSaveTableId").val(ids);
        	$("#txtSaveTableName").val(texts);

        });
	}
	
	function SelectReadTable()
	{
		var currentId = document.getElementById("hidReadTableId").value;
		
		var dataMapper = "frame.table.selectTree";
        var searchObject={};
        var searchMapper = JSON.stringify(searchObject);
        searchMapper = searchMapper.replace(/\%/g, "%25");
        searchMapper = searchMapper.replace(/\+/g, "%2B");
        searchMapper = searchMapper.replace(/\&/g, "%26");
        searchMapper = encodeURIComponent(searchMapper);
        CommonDialog("/components/tree/treeDialog?selectType=1&expandType=1&onlyLeafSelect=true&currentId="+currentId+"&dataMapper="+dataMapper+"&searchMapper="+searchMapper, "表选择", 600, 400, function(v) {

        	var ids="";
        	var texts="";
        	var len=0;
        	if(v.length>0)
        	{
        		 var selectArray = v.split(",");
        		 len=selectArray.length;
        		 for (var i = 0; i < selectArray.length; i++) {
        			 var selectItem = selectArray[i];
        			 
        			 var returnObj = eval("(" + unescape(selectItem) + ")");
        			 if (returnObj) {
        				 ids += ",";
                         ids += returnObj.NodeId;
                         texts += ",";
                         texts += returnObj.NodeText;
        			 }
        		 }
        		 if (ids.length > 0) {
                     ids = ids.substring(1);
                     texts = texts.substring(1);
                 }
        	}
        	$("#hidReadTableId").val(ids);
        	$("#txtReadTableName").val(texts);
        	if(len==1)
        	{
        		$("#txtSQLFromTable").val(texts);
        	}
        	

        });
	}
	
	function SelectFilterField(obj)
	{
		var arrayId=obj.id.split("_");
		if(arrayId.length==3)
		{
			var dyRow=arrayId[0];
			var index=arrayId[2];
			
			var currentId = document.getElementById(dyRow+"_hidFilterFieldId_"+index).value;
			var tableId=$("#hidReadTableId").val();
			
			var dataMapper = "frame.field.selectTree";
	        var searchObject={tableId:tableId};
	        var searchMapper = JSON.stringify(searchObject);
	        searchMapper = searchMapper.replace(/\%/g, "%25");
	        searchMapper = searchMapper.replace(/\+/g, "%2B");
	        searchMapper = searchMapper.replace(/\&/g, "%26");
	        searchMapper = encodeURIComponent(searchMapper);
	        CommonDialog("/components/tree/treeDialog?selectType=1&expandType=1&onlyLeafSelect=true&currentId="+currentId+"&dataMapper="+dataMapper+"&searchMapper="+searchMapper, "表选字段", 600, 400, function(v) {

	            var returnObj = eval("(" + unescape(v) + ")");
	            if (returnObj) {
					
	            	$("#"+dyRow+"_hidFilterFieldId_"+index).val(returnObj.NodeId);
	            	$("#"+dyRow+"_txtFilterFieldName_"+index).val(returnObj.NodeText);
	            	$("#"+dyRow+"_hidFilterTableId_"+index).val(returnObj.ParentNodeId);
	            	$("#"+dyRow+"_hidFilterTableName_"+index).val(returnObj.ParentNodeText);//改为ParentNodeText
	            }
	        	
	        });
		}
		
	}
	
	function setupSQL()
	{
		var show=$("#txtSQLShowField").val();
		var from=$("#txtSQLFromTable").val();
		var where=$("#txtSQLWhereField").val();
		var order=$("#txtSQLOrderField").val();
		var group=$("#txtSQLGroupField").val();
		
		var sql="SELECT "+show+" FROM "+from;
		if(where!=null && where.length>0)
		{
			sql+=" WHERE " + where;
		}
		if(order!=null && order.length>0)
		{
			sql+=" ORDER BY " + order;
		}
		if(group!=null && group.length>0)
		{
			sql+=" GROUP BY " + group;
		}
		
		$("#txtSQL").val(sql);
	}
	
    function ProcessTab(pageCode) {
        if (pageCode == "bdy") {
            ShowTab("tab2");
            ShowTab("tab3");
            ShowTab("tab4");
            ShowTab("tab5");
            HideTab("tab6");
            HideTab("tab7");
        }
        else if (pageCode == "lby") {
        	HideTab("tab2");
        	ShowTab("tab3");
        	HideTab("tab4");
        	ShowTab("tab5");
        	ShowTab("tab6");
        	ShowTab("tab7");
        }
        else if (pageCode == "tjy"){
        	HideTab("tab2");
        	ShowTab("tab3");
        	HideTab("tab4");
        	ShowTab("tab5");
        	ShowTab("tab6");
        	ShowTab("tab7");
        }
        else
        {
        	HideTab("tab2");
            HideTab("tab3");
            HideTab("tab4");
            ShowTab("tab5");
            HideTab("tab6");
            HideTab("tab7");
        }
    }
	
</script>

<style>
.DynamicRow input
{
	float:none;
}
</style>

</head>
<body>
	<form id="myform">
		<div class="container">
			<div class="fullwidth">
				<div class="buttonGroup h30">
					<input type="button" value="确定" id="btnSubmit"
						onclick="SubmitClick();" /> <input type="button" value="取消"
						id="btnInsert" onclick="CloseWindow();" />
				</div>
			</div>
			<div class="hiddencalc fullwidth h4"></div>

	        <div class="tabGroup fullwidth">
	            <div class="tab fullheight selected" id="tab1" target="page1">
	                <span class="tableft"></span><font>基本信息</font><span class="tabright"><span class="hiddencalc inputresult init"></span></span>
	            </div>
	            <div class="tab fullheight" id="tab2" target="page2">
	                <span class="tableft"></span><font>表单页签</font><span class="tabright"><span class="hiddencalc inputresult init"></span></span>
	            </div>
	            <div class="tab fullheight" id="tab3" target="page3">
	                <span class="tableft"></span><font>按钮信息</font><span class="tabright"><span class="hiddencalc inputresult init"></span></span>
	            </div>
	            <div class="tab fullheight" id="tab4" target="page4">
	                <span class="tableft"></span><font>存储信息</font><span class="tabright"><span class="hiddencalc inputresult init"></span></span>
	            </div>
	            <div class="tab fullheight" id="tab6" target="page6">
	                <span class="tableft"></span><font>读取信息</font><span class="tabright"><span class="hiddencalc inputresult init"></span></span>
	            </div>
	            <div class="tab fullheight" id="tab7" target="page7">
	                <span class="tableft"></span><font>查询条件</font><span class="tabright"><span class="hiddencalc inputresult init"></span></span>
	            </div>
	            <div class="tab fullheight" id="tab5" target="page5">
	                <span class="tableft"></span><font>扩展信息</font><span class="tabright"><span class="hiddencalc inputresult init"></span></span>
	            </div>
	        </div>

			<div class="hiddencalc fullwidth h4"></div>
			<div class="fullwidth calcheight onlyscrolly" id="page1">
				<div class="formcontainer calcwidth">
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">表单编号：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtFormId"
								name="txtFormId" value="${bean.formId!}" readonly />
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">表单标题：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtFormTitle"
								name="txtFormTitle" value="${bean.formTitle!}" /><span
								class="hiddencalc inputresult init" minlength="1" maxlength="50"
								controlname="表单标题" bindcontrol="txtFormTitle"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">表单版本：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtFormVersion"
								name="txtFormVersion" value="${bean.formVersion!}" /><span
								class="hiddencalc inputresult init" minlength="1" maxlength="50"
								controlname="表单版本" bindcontrol="txtFormVersion"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">表单类型：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtPageClassifyName"
								name="txtPageClassifyName" value="${bean.pageClassifyName!}" readonly />
							<font id="fontChangePage"><a href="javascript:void(0);" onclick="SelectPageClassify()">【选择】</a></font>
							<input type="hidden" id="hidPageClassifyId" name="hidPageClassifyId" value="${bean.pageClassifyId!}" />
							<input type="hidden" id="hidPageClassifyCode" name="hidPageClassifyCode" value="${bean.pageClassifyCode!}" />
								<span class="hiddencalc inputresult init" minlength="1" maxlength="50"
								controlname="表单类型" bindcontrol="txtPageClassifyName"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">保存文件夹：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSaveFolderName"
								name="txtSaveFolderName" value="${bean.saveFolderName!}" /><span
								class="hiddencalc inputresult init" minlength="1" maxlength="500"
								controlname="保存文件夹" bindcontrol="txtSaveFolderName"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">保存文件：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSaveFileName"
								name="txtSaveFileName" value="${bean.saveFileName!}" /><span
								class="hiddencalc inputresult init" minlength="1" maxlength="100"
								controlname="保存文件" bindcontrol="txtSaveFileName"></span>
						</div>
					</div>
					<div class="formitem fullwidth h300">
						<div class="label w150">
							<font class="labeltext">Init脚本：</font>
						</div>
						<div class="control calcwidth">
							<textarea class="calcwidth" id="txtFormInitScript" name="txtFormInitScript">${bean.formInitScript!}</textarea>
						</div>
					</div>
					<div class="formitem fullwidth h300">
						<div class="label w150">
							<font class="labeltext">Show脚本：</font>
						</div>
						<div class="control calcwidth">
							<textarea class="calcwidth" id="txtFormShowScript" name="txtFormShowScript">${bean.formShowScript!}</textarea>
						</div>
					</div>

				</div>
				<div class="scrollwidth hiddencalc" style="display: none;">
					<!--滚动条占位宽度-->
				</div>
			</div>
			<div class="fullwidth calcheight onlyscrolly" id="page2">
				<span onclick="InsertRow('DyRow1')" style="cursor: pointer;">[插入]</span>
				<table border="1" width="100%" id="DyRow1" class="DynamicRow showDataTable" data="rowData1" cellspacing="0">
					<tr class="showDataRow">
						<td width="80">页签标题：</td>
						<td width="120"><input type="text" id="txtFormTabTitle" style="width:100px;" /></td>
						<td width="80">是否显示：</td>
						<td>
							<input type="radio" id="rdoIsShow1" name="rdoIsShow" value="1" />
							<font>显示</font>
							<input type="radio" id="rdoIsShow2" name="rdoIsShow" value="0"  />
							<font>隐藏</font>
						</td>
						<td width="80">序号：</td>
						<td width="120"><input type="text" id="txtOrderNumber" style="width:100px;" value=""/></td>
						<td width="80">
							<input type="hidden" id="hidFormTabId" name="hidFormTabId" />
							<span onclick="DeleteRow(this,'DyRow1')" style="cursor: pointer;">[删除]</span>
						</td>
					</tr>
				</table>
			</div>
			<div class="fullwidth calcheight onlyscrolly" id="page3">
				<span onclick="InsertRow('DyRow2')" style="cursor: pointer;">[插入]</span>
				<table border="1" width="100%" id="DyRow2" class="DynamicRow showDataTable" data="rowData2" cellspacing="0" bindRowCount="2">
					<tr class="showDataRow">
						<td width="80">按钮标题：</td>
						<td width="120"><input type="text" id="txtButtonTitle" style="width:100px;" /></td>
						<td width="80">按钮行为：</td>
						<td>
							<input type="text" id="txtButtonAction" style="width:100px;" />
						</td>
						<td width="80">序号：</td>
						<td width="120"><input type="text" id="txtOrderNumber" style="width:100px;" value=""/></td>
						<td width="80">
							<input type="hidden" id="hidButtonId" name="hidButtonId" />
							<span onclick="DeleteRow(this,'DyRow2')" style="cursor: pointer;">[删除]</span>
						</td>
					</tr>
					<tr class="showDataRow">
						<td width="80">按钮标题：</td>
						<td colspan="6">
							<textarea rows="6" class="fullwidth" id="txtButtonScript" name="txtButtonScript"></textarea>
						</td>
					</tr>
				</table>
			</div>
			<div class="fullwidth calcheight onlyscrolly" id="page4">
				<div class="formcontainer calcwidth">
					<div class="formitem fullwidth h30">
						<div class="label w150">
							<font class="labeltext">保存表：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSaveTableName"
								name="txtSaveTableName" value="${saveTableName!}" readonly />
							<font><a href="javascript:void(0);" onclick="SelectSaveTable()">【选择】</a></font>
							<input type="hidden" id="hidSaveTableId" name="hidSaveTableId" value="${saveTableId!}" />
							<span class="hiddencalc inputresult init" minlength="1"
								controlname="保存表" bindcontrol="txtSaveTableName"></span>
						</div>
					</div>
				</div>
			</div>
			<div class="fullwidth calcheight onlyscrolly" id="page5">
				<input type="hidden" id="hidFormParamIds" name="hidFormParamIds" value="${formParamIds!}" />
				<table border="1" width="100%" id="ParamRow1" class="showDataTable" cellspacing="0">
					<#if listFormParams??><#list listFormParams as m>
					<tr class="showDataRow" id="row_${m.ParamsId!}">
						<td width="80">${m.ParamsCode!}：</td>
						<td width="400">
							${m.Control!}
						</td>
						<td>
							${m.ParamsText!}
							${m.Script!}
							<input type="hidden" id="hidParamsId" name="hidParamsId" />
						</td>
					</tr>
					</#list></#if>
				</table>
			</div>
			<div class="fullwidth calcheight onlyscrolly" id="page6">
				<div class="formcontainer calcwidth">
					<input type="hidden" id="hidId" name="hidId" value="${(itemFormRead.Id)!}" />
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">读取表：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtReadTableName"
								name="txtReadTableName" value="${(itemFormRead.ReadTableName)!}" readonly />
							<font><a href="javascript:void(0);" onclick="SelectReadTable()">【选择】</a></font>
							<input type="hidden" id="hidReadTableId" name="hidReadTableId" value="${(itemFormRead.ReadTableId)!}" />
							<span class="hiddencalc inputresult init" minlength="1"
								controlname="读取表" bindcontrol="txtReadTableName"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">主键字段：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtKeyFieldName"
								name="txtKeyFieldName" value="${(itemFormRead.KeyFieldName)!}" />
							<span class="hiddencalc inputresult init" minlength="1"
								controlname="读取表" bindcontrol="txtKeyFieldName"></span>
						</div>
					</div>
					<div class="formitem fullwidth h30">
						<div class="label w150">
							<font class="labeltext">显示字段：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSQLShowField"
								name="txtSQLShowField" value="${(itemFormRead.SQLShowField)!}" />
							<span class="hiddencalc inputresult init" minlength="1"
								controlname="显示字段" bindcontrol="txtSQLShowField"></span>
						</div>
					</div>
					<div class="formitem fullwidth h30">
						<div class="label w150">
							<font class="labeltext">表格容器：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSQLFromTable"
								name="txtSQLFromTable" value="${(itemFormRead.SQLFromTable)!}" />
							<span class="hiddencalc inputresult init" minlength="1"
								controlname="表格容器" bindcontrol="txtSQLFromTable"></span>
						</div>
					</div>
					
					<div class="formitem fullwidth h30">
						<div class="label w150">
							<font class="labeltext">过滤字段：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSQLWhereField"
								name="txtSQLWhereField" value="${(itemFormRead.SQLWhereField)!}" />
							<span class="hiddencalc inputresult init" minlength="0"
								controlname="过滤字段" bindcontrol="txtSQLWhereField"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">字段排序：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSQLOrderField"
								name="txtSQLOrderField" value="${(itemFormRead.SQLOrderField)!}" />
							<span class="hiddencalc inputresult init" minlength="0"
								controlname="字段排序" bindcontrol="txtSQLOrderField"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">字段分组：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtSQLGroupField"
								name="txtSQLGroupField" value="${(itemFormRead.SQLGroupField)!}" />
							<span class="hiddencalc inputresult init" minlength="0"
								controlname="字段分组" bindcontrol="txtSQLGroupField"></span>
						</div>
					</div>
					<div class="formitem fullwidth h150">
						<div class="label w150">
							<font class="labeltext">SQL预览：</font>
						</div>
						<div class="control calcwidth">
							<textarea class="calcwidth" id="txtSQL" name="txtSQL" readonly></textarea>
						</div>
					</div>
				</div>
			</div>
			
			<div class="fullwidth calcheight onlyscrolly" id="page7">
				<span onclick="InsertRow('DyRow3')" style="cursor: pointer;">[插入]</span>
				<table border="1" width="100%" id="DyRow3" class="DynamicRow showDataTable" data="rowData3" cellspacing="0" bindRowCount="2">
					<tr class="showDataRow">
						<td width="80">过滤标题：</td>
						<td width="120"><input type="text" id="txtFormFilterTitle" style="width:100px;" /></td>
						<td width="80">表达式：</td>
						<td>
							<select id="lstExpression" style="width:100px;">
								<option value="">请选择</option>
								<option value="1">等于</option>
								<option value="2">模糊Like</option>
							</select>
						</td>
						<td width="80">序号：</td>
						<td width="120"><input type="text" id="txtOrderNumber" style="width:100px;" value=""/></td>
						<td width="80">
							<input type="hidden" id="hidFormFilterId" name="hidFormFilterId" />
							<span onclick="DeleteRow(this,'DyRow3')" style="cursor: pointer;">[删除]</span>
						</td>
					</tr>
					<tr class="showDataRow">
						<td width="80">控件类型：</td>
						<td width="120">
							<select id="lstFormControlType" style="width:100px;">
								<option value="">请选择</option>
								<option value="11">文本框</option>
								<option value="12">日期框</option>
								<option value="13">列表框</option>
							</select>
						</td>
						<td width="80">过滤字段：</td>
						<td colspan="4">
							<input type="text" class="calcwidth" id="txtFilterFieldName"
								name="txtFilterFieldName" value="${filterFieldName!}" readonly />
							<font><a href="javascript:void(0);" onclick="SelectFilterField(this)" id="aClick">【选择】</a></font>
							<input type="hidden" id="hidFilterFieldId" name="hidFilterFieldId" value="${filterFieldId!}" />
							<input type="hidden" id="hidFilterTableId" name="hidFilterTableId" value="${filterTableId!}" />
							<input type="hidden" id="hidFilterTableName" name="hidFilterTableName" value="${filterTableName!}" />
							<span class="hiddencalc inputresult init" minlength="1"
								controlname="过滤字段" bindcontrol="txtFilterFieldName"></span>
						</td>

					</tr>
				</table>
			</div>
		</div>
	</form>
</body>
</html>
